<?php /* Smarty version 2.6.14, created on 2007-10-19 03:22:11
         compiled from ../track/listen/view.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', '../track/listen/view.tpl', 74, false),)), $this); ?>
    <?php echo $this->_tpl_vars['html']->open_table('','box','margin-top:25px;'); ?>

    <h2><?php echo $this->_tpl_vars['track_info']->title; ?>
</h2>
    <table id="track_title_info">
    <tr><td>
      <img id="coverimage" <?php if ($this->_tpl_vars['track_info']->release_title): ?>title="<?php echo $this->_tpl_vars['track_info']->release_title; ?>
"<?php endif; ?> src="<?php if (isset ( $this->_tpl_vars['track_info']->coverimage )):  echo $this->_tpl_vars['track_info']->coverimage;  else: ?>/img/nocover.jpg<?php endif; ?>" />
    </td><td id="track_title_info_right">
      <div id="by">by <i><a href="/artist/<?php echo $this->_tpl_vars['track_info']->artist_id; ?>
"><?php echo $this->_tpl_vars['track_info']->name; ?>
</a></i></div>
      <div id="release"><?php if ($this->_tpl_vars['track_info']->release_id): ?>part of <i><a href="/release/<?php echo $this->_tpl_vars['track_info']->release_id; ?>
"><?php echo $this->_tpl_vars['track_info']->release_title; ?>
</a></i><?php endif; ?></div>
      <div id="stats">
      this track has been played <?php echo $this->_tpl_vars['track_info']->played_times; ?>
 times<br />
      since <a href="/user/<?php echo $this->_tpl_vars['track_info']->uid; ?>
"><?php echo $this->_tpl_vars['track_info']->submitter; ?>
</a> added it on <?php echo $this->_tpl_vars['time_added'];  if ($this->_tpl_vars['track_info']->favs > 0): ?><br />
      and it's enjoyed by <a href="javascript:Listen.showFavs(<?php echo $this->_tpl_vars['track_info']->id; ?>
)"><b><?php echo $this->_tpl_vars['track_info']->favs; ?>
</b> <?php if ($this->_tpl_vars['track_info']->favs > 1): ?>people<?php else: ?>person<?php endif; ?></a><?php endif; ?>
      </div>
    </td></tr>  
    </table>
    <?php echo $this->_tpl_vars['html']->close_table(); ?>

    <?php echo $this->_tpl_vars['html']->open_table('','box'); ?>

    <div id="player"></div>
    <div id="track_menu">
    <img src="/img/icons/unfav.png" style="display:none;" />
    <?php if ($this->_tpl_vars['track_info']->fav_user == null): ?>
      <a id="favicon" href="javascript:Listen.fav(<?php echo $this->_tpl_vars['track_info']->id; ?>
)" id="fav"><img src="img/icons/fave.gif" alt="Add song to your playlist" title="Add song to your playlist" /></a>
    <?php else: ?>
      <a id="favicon" href="javascript:Listen.fav(<?php echo $this->_tpl_vars['track_info']->id; ?>
,1)" id="fav"><img src="img/icons/unfav.png" alt="Remove song from your playlist" title="Remove song from your playlist" /></a>
    <?php endif; ?>    
    </div>
    <?php echo $this->_tpl_vars['html']->close_table(); ?>

    <!-- Article -->
    <?php if ($this->_tpl_vars['track_info']->body): ?>
    <?php echo $this->_tpl_vars['html']->open_table('','box'); ?>

      <div id="article"><?php echo $this->_tpl_vars['track_info']->body; ?>
</div>
    <?php echo $this->_tpl_vars['html']->close_table(); ?>

    <?php endif; ?>
    <!-- /Article -->
    <!-- VideoBox -->
    <div id="ytv" style="display:none;">
    <?php echo $this->_tpl_vars['html']->open_table('','box'); ?>

    	<div id="ytv_c"></div>
    <?php echo $this->_tpl_vars['html']->close_table(); ?>

    </div>
    <!-- /VideoBox -->
	<div style="margin-top:0px;"><div>
	<!-- Tabs -->
	<div id="tabs">
      <div id="track_info" class="tab active">
    	<span class="tabTitle"><a href="javascript: Listen.getInfo()">Song Info</a></span>
      </div>
      <div id="videos" class="tab">
    	<span class="tabTitle"><a href="javascript: Listen.getVideos(a,b)">Videos</a></span>
      </div>
      <div id="events" class="tab">
    	<span class="tabTitle"><a href="javascript:void(0)" onclick="getEvents()">Events</a></span>
  	  </div>
      <div id="brainz" class="tab">
        <span class="tabTitle"><a href="javascript:void(0)" onclick="getBrainz()">Discography</a></span>
      </div>
  	  <div id="wiki" class="tab">
    	<span class="tabTitle"><a href="javascript:void(0)" onclick="getWiki()">Wiki</a></span>
  	  </div>
	</div>

	<br id="tabfix" style="clear:both;height:0px;" />

	<div id="services" class="box" style="margin:0px;">
	  <div class="tab_container" id="track_info_c">AAAAAAAAA</div>
	</div>
	<?php echo $this->_tpl_vars['html']->close_table(); ?>

	<?php echo $this->_tpl_vars['ll']->displayJs(); ?>

	<script type="text/javascript">
	 <?php echo '
		window.addEvent(\'domready\', function(){
	 '; ?>
    
       Listen.getPlayer('<?php echo $this->_tpl_vars['track_info']->id; ?>
',"<?php echo $this->_tpl_vars['track_info']->url; ?>
");
       a = '<?php echo ((is_array($_tmp=$this->_tpl_vars['track_info']->name)) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
';
       b = '<?php echo ((is_array($_tmp=$this->_tpl_vars['track_info']->title)) ? $this->_run_mod_handler('escape', true, $_tmp, 'quotes') : smarty_modifier_escape($_tmp, 'quotes')); ?>
';
	 <?php echo '
      });
	 '; ?>

	</script>